<template>
	<el-popover placement="bottom" width="300" trigger="hover">
		<template #reference>
			<el-text type="primary" class="cursor-default">
				<el-icon><ele-InfoFilled /></el-icon>{{ $t('message.formI18nBtn.details') }}
			</el-text>
		</template>
		<el-descriptions direction="vertical" :column="2" border>
			<el-descriptions-item width="140">
				<template #label>
					<el-text>
						<el-icon><ele-UserFilled /></el-icon> {{$t('message.formI18nFormTitle.creater')}}
					</el-text>
				</template>
				<el-tag>{{ props.data.createUserName ?? $t('message.formI18nBtn.none') }}</el-tag>
			</el-descriptions-item>
			<el-descriptions-item>
				<template #label>
					<el-text>
						<el-icon><ele-Calendar /></el-icon>{{$t('message.formI18nFormTitle.createTime')}}
					</el-text>
				</template>
				<el-tag>{{ props.data.createTime ?? $t('message.formI18nBtn.none') }}</el-tag>
			</el-descriptions-item>
			<el-descriptions-item>
				<template #label>
					<el-text>
						<el-icon><ele-UserFilled /></el-icon>{{$t('message.formI18nFormTitle.modifier')}}
					</el-text>
				</template>
				<el-tag>{{ props.data.updateUserName ?? $t('message.formI18nBtn.none') }}</el-tag>
			</el-descriptions-item>
			<el-descriptions-item>
				<template #label>
					<el-text>
						<el-icon><ele-Calendar /></el-icon>{{$t('message.formI18nFormTitle.updateTime')}}
					</el-text>
				</template>
				<el-tag>{{ props.data.updateTime ?? $t('message.formI18nBtn.none') }}</el-tag>
			</el-descriptions-item>
			<el-descriptions-item>
				<template #label>
					<el-text>
						<el-icon><ele-Tickets /></el-icon>{{$t('message.formI18nFormTitle.remarks')}}
					</el-text>
				</template>
				{{ props.data.remark ?? $t('message.formI18nBtn.none') }}
			</el-descriptions-item>
		</el-descriptions>
	</el-popover>
</template>

<script lang="ts" setup>
const props = defineProps<{
	data: ModifyRecord;
}>();
</script>
